package com.xuan.mail.domin;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * @TableName attachment
 */
@TableName(value ="attachment")
@Data
public class Attachment implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer attachmentId;

    /**
     * 
     */
    private String fileName;

    /**
     * 
     */
    private String fileType;

    /**
     * 
     */
    private Integer fileSize;

    /**
     * 
     */
    private String storagePath;

    /**
     * 
     */
    @ApiModelProperty(value = "上传时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date uploadTime;

    /**
     * 
     */
    private Integer isdeleted;

    /**
     * 
     */
    private Integer emailId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}